/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo.controller;

import demo.model.util.Constant;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Admin
 */
public class ErrorController extends WebInit {
     @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType(Constant.RESPONSE_ENCODING);
        this.init();
        forward("error.jsp", request, response);

    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request, response);
    }
    protected void display(HttpServletRequest request, HttpServletResponse response) throws Exception {
        setTitle(LANGUAGE.get("error"), request);
        forward("error.jsp", request, response);
    }
}
